<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAbnormalRecordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('abnormal_records', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string("ab_code")->comment("异常属性code");
            $table->string("at_code")->comment("异常分类code");
            $table->string("type")->comment("0小学，1初中，2高中");
            $table->string("g_code")->comment("年级编码");
            $table->string("c_code")->comment("班级编码");
            $table->string("s_code")->comment("学生编码");
            $table->integer("indicators")->comment("属性指数");
            $table->date("record_date")->comment("记录日期");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('abnormal_records');
    }
}
